// Echarts图表字体、间距自适应
export const fitChartSize = (size,defalteWidth = 1440) => {
    let clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
    if (!clientWidth) return size;
    let scale = (clientWidth / defalteWidth);
    return Number((size*scale).toFixed(3));
  }
  